package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class OTCEntrust   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("code")
  private String code = null;

  @JsonProperty("entrustTotal")
  private String entrustTotal = null;

  @JsonProperty("entrustMoney")
  private String entrustMoney = null;

  @JsonProperty("type")
  private String type = null;

  @JsonProperty("status")
  private String status = null;

  public OTCEntrust name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 昵称
   * @return name
  **/
  @ApiModelProperty(example = "投顾", value = "昵称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public OTCEntrust code(String code) {
    this.code = code;
    return this;
  }

  /**
   * 编码
   * @return code
  **/
  @ApiModelProperty(example = "003", value = "编码")


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public OTCEntrust entrustTotal(String entrustTotal) {
    this.entrustTotal = entrustTotal;
    return this;
  }

  /**
   * 冻结数量
   * @return entrustTotal
  **/
  @ApiModelProperty(example = "111", value = "冻结数量")


  public String getEntrustTotal() {
    return entrustTotal;
  }

  public void setEntrustTotal(String entrustTotal) {
    this.entrustTotal = entrustTotal;
  }

  public OTCEntrust entrustMoney(String entrustMoney) {
    this.entrustMoney = entrustMoney;
    return this;
  }

  /**
   * 委托金额
   * @return entrustMoney
  **/
  @ApiModelProperty(example = "111", value = "委托金额")


  public String getEntrustMoney() {
    return entrustMoney;
  }

  public void setEntrustMoney(String entrustMoney) {
    this.entrustMoney = entrustMoney;
  }

  public OTCEntrust type(String type) {
    this.type = type;
    return this;
  }

  /**
   * 操作方向 中文返回
   * @return type
  **/
  @ApiModelProperty(example = "买入", value = "操作方向 中文返回")


  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public OTCEntrust status(String status) {
    this.status = status;
    return this;
  }

  /**
   * 委托状态
   * @return status
  **/
  @ApiModelProperty(example = "买入", value = "委托状态")


  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OTCEntrust otCEntrust = (OTCEntrust) o;
    return Objects.equals(this.name, otCEntrust.name) &&
        Objects.equals(this.code, otCEntrust.code) &&
        Objects.equals(this.entrustTotal, otCEntrust.entrustTotal) &&
        Objects.equals(this.entrustMoney, otCEntrust.entrustMoney) &&
        Objects.equals(this.type, otCEntrust.type) &&
        Objects.equals(this.status, otCEntrust.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, code, entrustTotal, entrustMoney, type, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OTCEntrust {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    entrustTotal: ").append(toIndentedString(entrustTotal)).append("\n");
    sb.append("    entrustMoney: ").append(toIndentedString(entrustMoney)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

